//
//  MeatOrderApi.h
//  PigMarket
//
//  Created by 张敬 on 2019/9/10.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "MeatOrderParam.h"
#import "MeatOrderCommentParam.h"
#import "MeatOrderCommentAppendParam.h"
#import "MeatOrderCommentDetailParam.h"
#import "MeatOrderDetailParam.h"
#import "QuestionParam.h"



#import "MeatOrderFriendPayModel.h"
#import "MeatOrderCommentModel.h"
#import "MeatOrderCommentDetailModel.h"
#import "MeatOrderEvaluationSuccessModel.h"
#import "MeatOrderDetailModel.h"
#import "MeatOrderListModel.h"
#import "ServiceModel.h"
#import "QuestionModel.h"
#import "TaskModel.h"




NS_ASSUME_NONNULL_BEGIN

@interface MeatOrderApi : NSObject

+ (instancetype) sharedInstance;


#pragma mark - 单列表
- (RACSignal<MeatOrderListModel *> *)getOrderListByParams:(MeatOrderParam *)parmas;

#pragma mark - 订单取消
- (RACSignal<NSNull *> *)getOrderCancelByGoodId:(NSNumber *)goodsOrderId reason:(NSString *)cancelReason;

#pragma mark - 朋友代付
- (RACSignal <MeatOrderFriendPayModel *> *)getOrderFriendPayByGoodId:(NSNumber *)goodsOrderId;

#pragma mark - 确认收货
- (RACSignal <NSNull *> *)getOrderConfirmOverByGoodId:(NSNumber *)goodsOrderId;

#pragma mark - 删除订单
- (RACSignal <NSNull *> *)getOrderDeleteByGoodId:(NSNumber *)goodsOrderId;

#pragma mark - 发表评价
- (RACSignal<MeatOrderCommentModel *> *)getOrderEvaluateByParams:(MeatOrderCommentParam *)parmas;

#pragma mark - 追加评论
- (RACSignal<NSNull *> *)getOrderEvaluateAppendByParams:(MeatOrderCommentAppendParam *)parmas;

#pragma mark - 各个状态下的订单数量
- (RACSignal <MeatOrderCommentModel *> *)getOrderStateCount;

#pragma mark - 评价明细
- (RACSignal<MeatOrderCommentDetailModel *> *)getOrderEvaluateDetailByParams:(MeatOrderCommentDetailParam *)parmas;

#pragma mark - 点赞/取消点赞评论 //type 类型：1点赞2取消点赞
- (RACSignal <NSNull *> *)getOrderCommentLikeOrUnLikeById:(NSNumber *)orderEvaluateId type:(NSNumber *)type;

#pragma mark - 评价成功
- (RACSignal<MeatOrderEvaluationSuccessModel *> *)getOrderEvaluationByGoodId:(NSNumber *)goodsOrderId shopId:(NSString *)shopId;

#pragma mark - 订单详情
- (RACSignal<MeatOrderDetailModel *> *)getOrderDetailByParams:(MeatOrderDetailParam *)parmas;

#pragma mark - 是否是服务商
- (RACSignal<ServiceModel *> *)getMineServiceIs;

#pragma mark - 申请成为服务商 //1.线上2.线下3.取消
- (RACSignal<ServiceModel *> *)getOrderDetailByType:(NSNumber *)type;

#pragma mark - 调查问卷列表
- (RACSignal <QuestionModel *> *)getQuestionList;

#pragma mark - 调查问卷提交
- (RACSignal<NSNull *> *)applyQuestionsByParams:(QuestionParam *)parmas;

#pragma mark - 干点活赚点钱豚倦奖励与验证
- (RACSignal <TaskModel *> *)getTaskCheck;


@end

NS_ASSUME_NONNULL_END
